]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: Use actor.content.background
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Wed, 1 Jul 2020 10:51:33 +0000 (18:51 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 3 Jul 2020 06:41:48 +0000 (14:41 +0800)
Because actor.background no longer exists and emitted errors when
referenced.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2949
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1343

js/ui/background.js

index b7bf2b1a08bb4b4ce3b3cdbdba8255ea3fe73cc0..20f5e89126ccda5b6d98b7a60cbcd1af957d1e08 100644 (file)
@@ -712,13 +712,18 @@ var BackgroundManager = class BackgroundManager {
         }
 
         let newBackgroundActor = this._createBackgroundActor();
-        newBackgroundActor.vignette_sharpness = this.backgroundActor.vignette_sharpness;
-        newBackgroundActor.brightness = this.backgroundActor.brightness;
+
+        const oldContent = this.backgroundActor.content;
+        const newContent = newBackgroundActor.content;
+
+        newContent.vignette_sharpness = oldContent.vignette_sharpness;
+        newContent.brightness = oldContent.brightness;
+
         newBackgroundActor.visible = this.backgroundActor.visible;
 
         this._newBackgroundActor = newBackgroundActor;
 
-        let background = newBackgroundActor.background;
+        const { background } = newBackgroundActor.content;
 
         if (background.isLoaded) {
             this._swapBackgroundActor();